BaseSubsystem constructor 2

A creator for the BaseSubsystem class. This class contains the information about the KINGSTAR Base Subsystem.

Namespace: IntervalZero.KINGSTAR.Base.Class

Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
public BaseSubsystem(
       string configurationFile,
       int idealProcessor = 0,
       int instance = 0,
       int updateInterval = 50
)
Public Sub New(
       configurationFile As String,
       Optional idealProcessor As Integer = 0,
       Optional instance As Integer = 0,
       Optional updateInterval As Integer = 50
)

Parameters

configurationFile

Type: string

The location of the .kst file, which is created using KINGSTAR Configuration Tool.

 

idealProcessor [optional]

Type: int

Configures which core the KINGSTAR Base Subsystem runs on. All threads of the Base Subsystem run on the given processor. Core Zero is always for Windows. Other cores can be assigned to the Base Subsystem depending on your settings. By default, IdealProcessor is set to zero, meaning KINGSTAR will use the ideal processor configured in the instance configuration table (Control Panel > Runtime Settings > General Settings). If the table lacks settings for the given instance, the Base Subsystem may run on any core available to RTX64. If you set it to another number, such as two, the Base Subsystem will take the Core Two.

 

instance [optional]

Type: int

Selects which KINGSTAR Runtime instance you want to use when you have KINGSTAR Runtime components If you don't have the package, set it to zero (0). If you have three instances and want to use the third, set it to two (2). The number of instances is determined by the license you have.

 

updateInterval [optional]

Type: int

How long the Base Subsystem, axes, I/O modules and all other devices update their status. The default value is 50 milliseconds.

See also

BaseSubsystem Class

IntervalZero.KINGSTAR.Base.Class Namespace